package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 销售明细实体类
 */
@TableName("t_selldetail")
@ApiModel(value = "销售订单明细实体类", description = "封装销售订单明细相关属性")
public class SellDetailBean {
    /**
     * 销售明细id
     */
    @TableId(value = "pk_sellDetailId")
    @ApiModelProperty("销售明细id")
    private Integer sellDetailId;
    /**
     * 库存id
     */
    @TableField("fk_productId")
    @ApiModelProperty("库存id")
    private String productId;
    /**
     * 库存对象
     */
    @TableField(exist = false)
    @ApiModelProperty("库存对象")
    private ProductBean product;
    /**
     * 销售订单id
     */
    @TableField("fk_sellOrderId")
    @ApiModelProperty("销售订单id")
    private Integer sellOrderId;
    /**
     * 销售订单对象
     */
    @TableField(exist = false)
    @ApiModelProperty("销售订单对象")
    private SellOrderBean sellOrder;
    /**
     * 销售车销售数量
     */
    @TableField("sd_sellNum")
    @ApiModelProperty("销售车销售数量")
    private Integer sellNum;
    /**
     * 成交价
     */
    @TableField("sd_sellPrice")
    @ApiModelProperty("成交价")
    private Integer sellPrice;

    public SellDetailBean() {
    }

    public SellDetailBean(String productId, Integer sellOrderId, Integer sellNum, Integer sellPrice) {
        this.productId = productId;
        this.sellOrderId = sellOrderId;
        this.sellNum = sellNum;
        this.sellPrice = sellPrice;
    }

    public Integer getSellDetailId() {
        return sellDetailId;
    }

    public void setSellDetailId(Integer sellDetailId) {
        this.sellDetailId = sellDetailId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public Integer getSellOrderId() {
        return sellOrderId;
    }

    public void setSellOrderId(Integer sellOrderId) {
        this.sellOrderId = sellOrderId;
    }

    public SellOrderBean getSellOrder() {
        return sellOrder;
    }

    public void setSellOrder(SellOrderBean sellOrder) {
        this.sellOrder = sellOrder;
    }

    public Integer getSellNum() {
        return sellNum;
    }

    public void setSellNum(Integer sellNum) {
        this.sellNum = sellNum;
    }

    public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    @Override
    public String toString() {
        return "SellDetailBean{" +
                "sellDetailId=" + sellDetailId +
                ", productId='" + productId + '\'' +
                ", product=" + product +
                ", sellOrderId=" + sellOrderId +
                ", sellOrder=" + sellOrder +
                ", sellNum=" + sellNum +
                ", sellPrice=" + sellPrice +
                '}' + "\n";
    }
}

